#!/bin/bash
#

OUTPUTFILE=testresults.csv
EXE=./main

echo type,lambda,quantum,avgqueue,turnaround,load,throughput > $OUTPUTFILE
echo -n Beginning 210 tests

for((l=1;l<=30;l++))
do
	for((t=1;t<=5;t++))
    do
        if [ $t -eq 5 ]
        then
            for q in 0.01 0.05 0.1
            do
                echo -n .
                $EXE $t $l 0.06 $q >> $OUTPUTFILE
            done
        else
            echo -n .
            $EXE $t $l 0.06 >> $OUTPUTFILE
        fi
    done
done

echo done!
echo
echo See full results in:  $OUTPUTFILE

# eof
